/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package xhserver;

/**
 *
 * @author Tri
 */
public class XHMessage {
    private int msgID;
    private String msgContent;

    public XHMessage(int msgID, String msgContent) {
        this.msgID = msgID;
        this.msgContent = msgContent;
    }
    
    public int getID() {
        return this.msgID;
    }
    public String getContent() {
        return this.msgContent;
    }
    
    public String toJSON() {
        JSONParser parser = JSONParser.getInstance();
        return parser.toJSON(this);
    }
    
}
